package com.martin.fastframe.ui.danmu

import android.view.View
import android.widget.TextView
import com.bumptech.glide.Glide
import com.martin.fastframe.R

class GiftDanMuItem(
    private val message: String,
    private val icon: String,
) : BaseDanMuItem() {

    override fun getItemLayoutId() = R.layout.dan_mu_gift

    override fun onBindData(view: View) {
        view.findViewById<TextView>(R.id.tv).text = message
        Glide.with(view)
            .load(icon)
            .into(view.findViewById(R.id.iv))
    }
}